import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/views/Login.vue'
import Home from '@/views/Home.vue'
import welcome from '@/views/welcome/welcome.vue'
import user from '@/views/user/user.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/login',
      name:'Login',
      component:Login
    },
    {
      path:'/',
      name:'Home',
      component:Home,
      redirect:{
        path:'/welcome'
      },
      children:[
        {
          path:'welcome',
          name:'welcome',
          component:welcome,
        },{
          path:'user',
          name:'user',
          component:user
        }
      ]
    }
  ]
})
